package com.fanqiechaodan.singleton.singleton3;

/**
 * @author fanqiechaodan
 * @Classname Singleton
 * @Description
 */
public class Singleton {

    private Singleton(){
        // 私有构造函数
    }

    public static Singleton getInstance(){
        return SingletonHolder.INSTANCE;
    }

    private static class SingletonHolder{
        private static final Singleton INSTANCE = new Singleton();
    }
}
